package edu.zut.cs.software.estateagent.admin.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.admin.domain.Admin;
import edu.zut.cs.software.estateagent.admin.service.AdminManager;

@Controller
@CrossOrigin(origins = "*")
@RequestMapping("/admin")
public class AdminController extends GenericController<Admin, Long, AdminManager> {

	AdminManager adminManager;

    @RequestMapping("/index")
    public String index() {
        return "admin/index";
    }

    @Autowired
    public void setAdminManager(AdminManager adminManager) {
        this.adminManager = adminManager;
        this.manager = this.adminManager;
    }
}
